package com.demo2do.boyle.backend.service.system;

import java.util.List;

import com.demo2do.boyle.common.entity.system.Principal;
import com.demo2do.core.service.GenericService;

/**
 * 
 * @author Leo
 */
public interface PrincipalService extends GenericService<Principal> {

    /**
     * list all principals 
     * 
     * @param page
     * @return
     */
    public List<Principal> list();
    
    /**
     * 
     * @param principal
     */
    public void create(Principal principal);
    
    /**
     * Load principal by mobile
     * 
     * @param mobile
     * @return the principal
     */
    public Principal loadPrincipal(String mobile);
    
    /**
     * Reset password of a principal
     * 
     * @param principal
     */
    public void resetPassword(Principal principal);

}
